package cn.yh.hospitalappointmentsystemdemo.mapping;

import cn.yh.hospitalappointmentsystemdemo.domain.entity.PreAppointments;
import cn.yh.hospitalappointmentsystemdemo.domain.query.PreAppointmentCreate;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.text.Format;

@Mapper
public interface AppointmentMapping {
    AppointmentMapping INSTANCE = Mappers.getMapper(AppointmentMapping.class);

//    Page<PreAppointmentVo> toPage(Page<PreAppointments> page);
//    @Mappings({
//            @Mapping(target = "patientId", source = "patientId"),
//            @Mapping(target = "doctorId", source = "doctorId"),
//            @Mapping(target = "departmentId", source = "departmentId"),
//            @Mapping(target = "preDate", source = "preDate"),
//            @Mapping(target = "timeSlot", source = "timeSlot"),
//            @Mapping(target = "remarks", source = "remarks")
//    })
    PreAppointments toCreate(PreAppointmentCreate preAppointmentCreate);

//    void toVo(PreAppointments one);
}